<div class="col-md-12 column">
        <h3>
                <?php echo __('GENRE')?>: <?php echo ($language == 'lv' ? $genre_info->genre_lv : $genre_info->genre_en)?><br>
        </h3>

        <?php 
            if(isset($movie_genres) && count($movie_genres) > 0) {
                foreach($movie_genres as $movie_genre) {
                    echo 
                        '<div class="col-md-6 column pull-left"><div class="panel panel-default"><div class="panel-heading"><h3 class="panel-title"><strong>' .
                            ($language == 'lv' ? $movie_genre->get('movie')->title_lv : $movie_genre->get('movie')->title_en ) . '</strong> (' . $movie_genre->get('movie')->year . ')' .
                        '</h3></div><div class="panel-body"><p>'.
                            '<img src="/uploads/posters/' . $movie_genre->get('movie')->poster_small . '" style="float: left; margin-right: 10px;">' .
                            ( $language == 'lv' ? mb_substr($movie_genre->get('movie')->description_lv, 0, 200) : mb_substr($movie_genre->get('movie')->description_en, 0, 200) ) . '...</p>' . 
                            '<p>'.
                            '<a class="btn btn-info" href="/movie/view/'. $movie_genre->get('movie')->id .'">'. __('MOVIE_INFO') .'</a>' .
                        '</div></div></div>';
                }   
            } else {
                echo __('NOT_FOUND');
            }
        
        ?>
</div>

